#include<sys/types.h>
#include<unistd.h>
#include<cstdio>
int main()
{
  pid_t id=fork();
  if(id==0)
  {
    while(1)
    {

      sleep(1);
      printf("我是子进程,%d\n",getpid());
    }
  }else 
  {
    sleep(1);
  
    printf("我是父进程,=%d\n",getpid());
  }


  return 0;
}
